package mybox.engine.rundfeder;

import java.util.ArrayList;

import mybox.engine.Figur;
import mybox.engine.Line;

public class Kurve implements Figur{
	
	
	ArrayList<Line> lineArr = new ArrayList<Line>();
	
	public Kurve() {
		
	}
	
	public void addLineArr(Line[] linearr) {
		int checkIdx=0;
		for (Line line :linearr) {
			lineArr.add(line);
			checkIdx++;
			if (line.begin.x==0 && line.begin.y==0) 
			  System.out.println("Debug:check checkIdx="+checkIdx);			
		}
	}
	
	public void addSector(Sector sector) {
		addLineArr(sector.linearr);		
	}

	@Override
	public void draw() {
		for (Line line : lineArr) {
			line.draw();
		}
		
	}
	
	public Line get(int idx) {
		return lineArr.get(idx);
	}
	
	public int size() {
		return lineArr.size();
	}

}
